﻿using System;

class SumOfNnumbers

            //Write a program that gets a number n and after that gets more n numbers and calculates and prints their sum. 

{
    static void Main()
    {
        Console.WriteLine("How many numbers would be summed?");
        int n = int.Parse(Console.ReadLine());
        double sum = 0;
        for (int counter = 0; counter < n; counter++)
        {
            Console.WriteLine("Input number");
            double n1 = double.Parse(Console.ReadLine());
            sum = sum + n1;
        }
        Console.WriteLine("The total sum of ht enumbers is: " + sum);
    }
}


